package com.wxs.service.impl;

import com.wxs.mapper.ResMapper;
import com.wxs.po.ResVo;
import com.wxs.service.ResService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zzp
 * @Desc
 * @Date 2020/12/23
 */
@Service
public class ResServiceImpl implements ResService {

    @Autowired
    private ResMapper resMapper;

    public void addRes(ResVo vo) {
        resMapper.save(vo);
    }

    public List<ResVo> getAllResById(Integer teacherId) {
        List<ResVo> list = resMapper.getAllResById(teacherId);
        return list;
    }

    public void deleteInfoById(String id, String teacherId) {
        resMapper.deleteInfoById(id,teacherId);
    }
}
